package com.yuan.springcloud.user.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuan.springcloud.user.bean.dto.UserInfoDTO;
import com.yuan.springcloud.user.bean.po.UserPO;
import com.yuan.springcloud.user.bean.vo.UserQueryVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YouYuan
 * @date 2020/8/16 23:31
 */
public interface UserDAO extends BaseMapper<UserPO> {

    List<UserPO> queryUserList(UserQueryVO queryParam);

    List<UserPO> queryUserListById(@Param("userIdList") List<Integer> userIdList);

    IPage<UserPO> queryUserList(Page<?> page);

    int queryUserCount();

    List<UserInfoDTO> queryUserInfoList();
}
